home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / rexx / 11 < prev    next >
Encoding:
Text File  |  1996-08-06  |  987 b   |  31 lines

  1. Newsgroups: comp.lang.rexx
  2. From: Alex Malmygin <Alex_Malmygin@p29.f376.n5020.z2.fidonet.org>
  3. Message-ID: <30e811e1@p29.f376.n5020.z2.fidonet.org>
  4. References: <39BB8DC1@p0.f128.n50.z2.fidonet.org>
  5. Path: gate.phantom.ru!echogate
  6. Subject: OS/2 Rexx: How to get boot drive ?
  7. Sender: u1@gate.phantom.ru
  8. Date: Mon,  1 Jan 1996 16:51:21 +0300
  9. X-Gate: U1 1.99f [OS2/C Set]
  10. Organization: Samuray's Castle BBS (Gid:fidonet.org)
  11. X-FTN-MsgId: 2:5020/376.29@FidoNet 30e811e1
  12. X-FTN-Reply: 2:50/128.0@fidonet 39BB8DC1
  13.  
  14.     Hello All!
  15.  
  16. Saturday December 30 1995 23:04, loren@usair.com wrote to All:
  17.  
  18. >> How can I get the drive letter of the boot drive using REXX for OS/2 ?
  19.  
  20.     The quite simple solution is given in \OS2\SRD2FIX.CMD:
  21.  
  22. /* get boot drive letter from environment */
  23. BootDrive=left(value('COMSPEC',,'OS2ENVIRONMENT'),2)
  24.  
  25.  
  26.     WBR, WBW, always |) or B)
  27.        Alex AKA Tarzan             ₧òö{ Team OS/2, DooM][, BeeR }öò₧
  28.  
  29. --- GoldED/2 2.50+
  30.  * Origin: Samuray's Castle BBS (2:5020/376.29)
  31.